package Object_demo;
import java.util.Objects;

public class Object_equals {
    public static void main(String[] args) {
        String s1=null;
        String s2="傻逼";
        //System.out.println(s1.equals(s2));//不好有空指针会报错
        System.out.println(Objects.equals(s1,s2));//false
    }
}
